Repository navigation
fleet-queue: validate list --not-before at client and broker (#9027) - #10976
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 57 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Review disposition (lane any-b, task 18811): automated review state at merge time — CodeRabbit check completed NEUTRAL with no findings; zero inline review comments; no other review runs present. Nothing to disposition beyond that. The change is covered by the crate suite (390 lib tests, run from |
Summary
Closes the #9027 finding (Phase 4 disposition (a) of #6449):
list --not-beforewas validated at no layer. The client forwarded the raw flag, and on the Turso backend the TEXT comparison silently narrowed the listing — a value sorting before every timestamp (e.g.0,!) hid every row carrying anot_before; one sorting after (e.g.banana) disabled the filter — both with exit 0.Changes
client.rs(cmd_list): the flag is validated once, before the paging loop, with the existing fleet(queue): packet not_before is never validated — garbage and far-future values are forwarded verbatim, and a far-future task is born unclaimable #6426 rule (validate_not_before_flag— the same validationpark/revivealready apply); the/listbody now carries the validated value. Garbage dies with exit 2 naming--not-beforebefore any broker contact.queue_broker.rs:/listjoins/parkand/revivein thevalidate_request_not_beforedispatch gate, so non-CLI callers get the same rejection; the existing gate test now covers all three paths.Tests
cargo test -p fleet-queue --all-features(run frompkgs/fleet): 390 lib tests pass, including the newlist_not_before_is_validated_before_the_call_9027and the extended broker gate test.repo-queuebinary:list --not-before bananaandlist --not-before 0both exit 2 with--not-before: '<value>' is not a valid RFC 3339 timestamp.Behavior-preserving for valid values: a valid timestamp passes through unchanged, and an absent flag sends
nullexactly as before.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.